﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildMercenary extends IMessageBase
    {
        public var playerId:int;
        public var name:String;
        public var career:int;
        public var level:int;
        public var combat:int;
        public var money:int;
        public var count:int;
        public var myCount:int;
        public var creatdt:Date;
        public const _type:int = 5123;
        public static var _regist:SGuildMercenary = new SGuildMercenary(true);

        public function SGuildMercenary(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildMercenary();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.playerId);
            param1.writeString(this.name);
            param1.writeInt(this.career);
            param1.writeInt(this.level);
            param1.writeInt(this.combat);
            param1.writeInt(this.money);
            param1.writeInt(this.count);
            param1.writeInt(this.myCount);
            param1.writeDate(this.creatdt);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.playerId = param1.readInt();
            this.name = param1.readString();
            this.career = param1.readInt();
            this.level = param1.readInt();
            this.combat = param1.readInt();
            this.money = param1.readInt();
            this.count = param1.readInt();
            this.myCount = param1.readInt();
            this.creatdt = param1.readDate();
            return;
        }// end function

    }
}
